from appium.webdriver.common.appiumby import AppiumBy
from pages.base_page import BasePage


class TeamPage(BasePage):

    # 元素定位器
    PERSONAL_CENTER = (AppiumBy.ID,'com.topboya.linker:id/fl_sidebar')

    HOME_PAGE = (AppiumBy.XPATH,'//android.widget.LinearLayout[@resource-id="com.topboya.linker:id/ll_tab1"]/android.widget.LinearLayout')

    WORK_BENCH = (AppiumBy.ID,'com.topboya.linker:id/iv_tab3')
    MESSAGE = (AppiumBy.ID,'com.topboya.linker:id/iv_tab4')

    def click_personal_center(self):
        self.click(self.PERSONAL_CENTER)

    def click_home_page(self):
        self.click(self.HOME_PAGE)

    def click_work_bench(self):
        self.click(self.WORK_BENCH)

    def click_message(self):
        self.click(self.MESSAGE)






